package com.ccnf.core.exception;

import com.ccnf.core.bean.StatusCode;
import lombok.Data;

@Data
public class ErrorForwardException extends RuntimeException {
    private Integer errorCode;

    public ErrorForwardException(String message) {
        this(StatusCode.BIZ_OPERATION_FAILURE.code, message);
    }

    public ErrorForwardException(Integer errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }
}